home *** CD-ROM | disk | FTP | other *** search
/ Megahits 5 / Megahits 5 (1994)(GTI - Rhein-Main-Soft)(DE)(Disc 2 of 2)[!].iso / archive / conv / ansima11.lha / ANSImage.DOC < prev    next >
Text File  |  1994-06-05  |  7KB  |  186 lines

  1.             ANSImage v1.1 USER DOCUMENTATION
  2.             ================================
  3.                (C) 1994 Daniele Paccaloni
  4.  
  5.  
  6.             This is PUBLIC DOMAIN ! Enjoy !
  7.  
  8.  
  9.  
  10. * WHAT IS ANSImage ?
  11.  
  12. ANSImage is a nice utility that converts a color picture into a 8 colors ANSI
  13. file using dithering to render more than 8 colors on screen.
  14. Of course the resolution is much lower (the ANSI file is 80x25) but in most
  15. cases you can recognize the original picture very well.
  16. ANSImage stretches the entire original image to fit in the 80x25 characters
  17. grid.
  18. This release works with any IFF file (GIF will be supported soon), any size,
  19. up to 1280x1024.  Maximum number of BitPlanes supported is 8 (eight!), this
  20. means images with up to 256 colors can be converted !
  21. Of course HAM images are supported but their x-size must not exceed 640
  22. pixels. (Most HAM images have x-size = 320).
  23. ANSImage works in 8 colors, so you should set your terminal with 8 colors.
  24. Don't worry because most BBS's run with 8 colors (If you have an ECS Amiga,
  25. using 8 colors instead of 16 will speed up text output !).
  26. You can use also 16 colors in your terminal but the picture colors will look
  27. half bright (not recommended).
  28. You must use STANDARD ANSI colors (do not customize them !).
  29. To dither the images, ANSImage uses the standard IBM fonts. This is because
  30. the Amiga font has not special grid-characters to make dithers.
  31. Don't worry, because in the ANSImage package you find the "IBMfont.font" file
  32. and "IBMfont" directory.  Copy both in your "FONTS:" directory.
  33. To use this font you can:
  34.  
  35. 1) If your terminal allows you to change the font it uses, then tell it to use
  36.    "IBMfont.font".
  37. 2) If your terminal supports only the default font you should use programs
  38.    like "FF" or "SetFont". Try writing in the CLI: "FF IBMfont.font".
  39.    Do this before running your terminal.
  40.    "FF" is a very good program that not only allows you to use a different
  41.    font but speeds up text output too !
  42.  
  43.  
  44.  
  45. * SO WHAT ? WHY SHOULD I CONVERT PICTURES TO ANSI ?
  46.  
  47. ANSImage is very useful if:
  48.  
  49. 1) You want to download some images from a BBS.
  50.    Many times it happens you download crap images losing your credits for
  51.    nothing.  Remember that some images can be up to 1 Mb in size !
  52.    Well, with ANSImage the sysop can make a little BBS-door to let the user
  53.    take a look at the images and choose which to download.
  54.    With a 14400 bps modem and a BBS running on 68030, the user can see an
  55.    image on his terminal screen in less than 8 seconds !
  56.  
  57. 2) You are an ANSI maker.
  58.    If you paint colourful ANSI files for BBS's then ANSImage can be very
  59.    helpful.  Just imagine you must paint a logon ANSI for a BBS called, say,
  60.    "Dragon BBS".  You can digitize a dragon photo and save a HAM file. Then
  61.    with ANSImage you can directly port it to ANSI. All you must do now is
  62.    retouching the ANSI file with any ANSI editor !
  63.  
  64. 3) There are many many many other reasons but i cant remember  :-)  !
  65.  
  66.  
  67.  
  68.  
  69. * UHM, IT'S NICE ! HOW DO I USE IT ?
  70.  
  71. ANSImage is used from the CLI.  Type in the CLI for example:
  72.  
  73.   ANSImage dh1:images/Fashion.HAM ram:Fashion.ANS
  74.  
  75. This will load the file Fashion.HAM, convert it to ANSI, and then write the
  76. result to the file Fashion.ANS.
  77. If you have a slow CPU the conversion may take some seconds.
  78.  
  79. There are some options that can be used:
  80.  
  81. -h : Help on ANSImage.
  82.  ? : Help on ANSImage.
  83. -nd: Do not write the image description in the output file. Whithout this
  84.      option the first line of the ANSI file will report info on the converted
  85.      image.
  86. -nn: Do not insert a NewLine after each line of the ANSI file. Files converted
  87.      using this option work only on terminal screens with 80 columns.
  88.      This option is useful if you have an 80-columns terminal and you see an
  89.      empty line between each converted ANSI line.
  90. -nt: Quiet convert (do not output any text in the CLI).
  91. -e : Use ESC+[ instead of CSI for control sequence. You must use this if your
  92.      ANSI editor or your term does not support the quick control sequence
  93.      (i.e. you see only some numbers and strange character when you show the
  94.      file you have converted).
  95.      Remember that this options adds 2000 bytes to your ANSI file, so it is
  96.      recommended only if you have a LAME ANSI EDITOR or a LAME TERM.
  97.  
  98.  
  99. Options are specified before file names. Example:
  100.  
  101.   ANSImage -nd -nn dh1:images/Fashion.HAM ram:Fashion.ANS
  102.  
  103. This will convert the previous file without adding image infos nor newlines.
  104.  
  105.  
  106.  
  107.  
  108. * HOW CAN I SEE THE ANSI FILES I HAVE CONVERTED ?
  109.  
  110. You can simply use any ANSI editor. Remember that most ANSI editor are LAME
  111. because they do not support the quick ANSI control sequence ($9b), so you
  112. will have to use option -e to convert your files.
  113. If you have none you can load your terminal and try "Send ASCII" with your
  114. ANSI file. If you are lucky (i.e. your terminal proggy does not filter ANSI
  115. codes) you should see it on your terminal screen. If you see only numbers
  116. and strange characters it means that your terminal is filtering the codes.
  117. If you see only some numbers and strange characters when showing your file
  118. (i.e. it is not what you have converted !) then try using option -e.
  119.  
  120.  
  121.  
  122.  
  123.  
  124. * SOMETIMES THE ANSI FILE IS TOO CONFUSED: WHAT CAN I DO TO SEE IT BETTER ?
  125.  
  126. Sometimes (expecially when converting images with similar color shades) you
  127. couldn't be able to recognize what's the image about.
  128. This is due to the intrinsic complexity of some images and not much can be
  129. done.  I use a nice trick that works with all converted files, here it is:
  130.  
  131. Step_1) Place your eyes far 1.5 meters from the monitor.
  132. Step_2) Close your eyes.
  133. Step_3) Very slowly open your eyes a little bit just to see the image foggy
  134.     enough to smooth the contours of any ANSI character.
  135.  
  136. This helps a lot to improve image understanding.
  137.  
  138.  
  139.  
  140.  
  141. * TECHNICAL INFO AND FEATURES
  142.  
  143. - 100 % machine code.
  144. - Coded in 2 days.
  145. - Ca. 1 KDSI (1000 source instructions).  Productivity: 15 KDSI/month.
  146. - Executable size: 3820 bytes (compressed with Imploder).
  147. - Run time memory consumption: 28 KBytes + input_image_file_lenght.
  148. - Oputput ANSI file is about 16 KBytes or 18 KBytes if option -e is used. 
  149.   The file is highly compressable so that sending it via modems supporting
  150.   compression it's sent in a few seconds.
  151. - Supports any IFF file up to 1280x1024 x 8 planes.
  152. - Supports HAM files up to 640x1024 (6 planes only).
  153. - Does not support EHB (EHB images are converted like normal 64 colors imgs).
  154. - Conversion is done averaging 64 images pixels per any ANSI text character.
  155.  
  156.  
  157.  
  158.  
  159. * NEXT RELEASES
  160.  
  161. Next ANSImage releases will:
  162.  
  163. 1) Support GIF files.
  164. 2) Show text info (if any) in the Image file.
  165. 3) Support for EHB (Extra Half Brite) images.
  166. 4) Speed up conversion.
  167. 5) Output ANSI files of more than 80x25 characters.
  168. 6) Improve dithering method.
  169.  
  170.  
  171.  
  172.  
  173. * CONTACT THE AUTHOR:
  174.  
  175. Bug reports, suggestions, money, congratulations, food, girls are welcome:
  176. please contact me:
  177.  
  178.  
  179. E-Mail:        paccalon@ghost.dsi.unimi.it
  180.  
  181. Ordinary mail:    Daniele Paccaloni
  182.         Via Agadir 10/A, San Donato Milanese (MI), ITALY.
  183.  
  184. BBS:        +39-2-58105803 --- BBS name:"BBK", 4 nodes RD 16800 DUAL.
  185.         Leave messages to DDT (Cosysop).
  186.